﻿namespace YidanSoft.Library.EditorUtility.Menus
{
    using System;
    using System.Windows.Forms;

    internal class FocusCatcher : NativeWindow
    {
        public FocusCatcher(IntPtr hParent)
        {
            CreateParams cp = new CreateParams();
            cp.Caption = "NativeFocusCatcher";
            cp.X = -1;
            cp.Y = -1;
            cp.Height = 0;
            cp.Width = 0;
            cp.Parent = hParent;
            cp.Style = 0x50000000;
            this.CreateHandle(cp);
        }
    }
}

